﻿<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>{$page_seo.title}</title>
<meta name="keywords" content="{$page_seo.keywords}" />
<meta name="description" content="{$page_seo.description}" />
<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0" name="viewport">
<script src="__STATIC__/js/jquery/jquery.js"></script>
<script type="text/javascript" src="__STATIC__/weixin/js/index.js"></script>
<link type="text/css" rel="stylesheet" href="__STATIC__/weixin/css/shop.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/weixin/css/common.css" media="all">
<link rel="stylesheet" type="text/css" href="__STATIC__/weixin/css/font-awesome.css" media="all">
<script src="__STATIC__/layer.m/layer.m.js"></script>
<link rel="stylesheet" href="__STATIC__/layer.m/layer.css">
<style>
	.cover-text{
		margin:0 auto;
		line-height: 30px;
		top:100px;
		position:fixed;
		width:100%;
		text-align:center;
		z-index: 9999999;
		font-size:16px;
		color:white;
		display:none;

	}
	.cover-close{
		position:fixed;
		top:5px;
		left:5px;
		z-index: 9999999;
		display:none;
	}
	.cover-jiantou{
		position:fixed;
		top:5px;
		right:20px;
		z-index: 9999999;
		display:none;
		height:70px;
	}
</style>
<script>
	function showCover(){
		$(".shade-cover,.cover-text").show();
		$(".cover-close").show();
		$(".cover-jiantou").show();
	}

	function hideCover(){
		$(".shade-cover,.cover-text").hide()
		$(".cover-close").hide();
		$(".cover-jiantou").hide();
	}

	//showCover()

</script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
wx.config({
    appId: '{$signPackage.appId}',
    timestamp:{$signPackage.timestamp},
    nonceStr: '{$signPackage.nonceStr}',
    signature: '{$signPackage.signature}',
    jsApiList: [
      'checkJsApi','onMenuShareTimeline','onMenuShareAppMessage'
    ]
 });

wx.ready(function () {
	wx.onMenuShareAppMessage({
	  title: "早点约我",
	  desc: "微社交与本地生活O2O的完美结合——为心爱的人点一份早餐！",
	  link: "http://" + window.location.host + '{:u("index/zaodian")}',
	  imgUrl: "http://www.bf521.com/static/weixin/images/index/zaodian_logo.png",
	  trigger: function (res) {
	    //alert('用户点击发送给朋友');
	  },
	  success: function (res) {
	    window.location.href = '{:u("index/zaodian")}'
	  },
	  cancel: function (res) {
	    //alert('已取消');
	  },
	  fail: function (res) {
	    alert(JSON.stringify(res));
	  }
	});
	//alert('已注册获取“发送给朋友”状态事件');
});
</script>
</head>
<body>
	<div class="shade-cover" style='background:black;color:white;'></div>
	<img onclick='hideCover()' class='cover-close' src="__STATIC__/weixin/images/delete_btn.png" alt="">
	<img class='cover-jiantou' src="__STATIC__/weixin/images/jiantou.png" alt="">
	<div class='cover-text'>
		<p>请点击右上角</p>
		<p>通过【发送给朋友】功能</p>
		<p>把消息告诉小伙伴哟~</p>
	</div>